package com.seawaterbt.ssm.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seawaterbt.ssm.config.DataSource;
import com.seawaterbt.ssm.config.DataSourceEnum;
import com.seawaterbt.ssm.entity.CzDatBoilerdata;
import com.seawaterbt.ssm.entity.CzDatCrewData;
import com.seawaterbt.ssm.mapper.CzDatBoilerdataMapper;
import com.seawaterbt.ssm.service.CzDatBoilerdataService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhf
 * @since 2019-10-31
 */
@Service
public class CzDatBoilerdataServiceImpl extends ServiceImpl<CzDatBoilerdataMapper, CzDatBoilerdata> implements CzDatBoilerdataService {

    @DataSource(DataSourceEnum.DB2)
    @Override
    public boolean saveOrUpdate(CzDatBoilerdata entity) {
        return super.saveOrUpdate(entity);
    }
    @DataSource(DataSourceEnum.DB2)
    @Override
    public List<CzDatBoilerdata> list(Wrapper<CzDatBoilerdata> queryWrapper) {
        return super.list(queryWrapper);
    }
    @DataSource(DataSourceEnum.DB2)
    @Override
    public CzDatBoilerdata getByCodeTime(QueryWrapper wrapper) {
        return super.getOne(wrapper);
    }
}
